package cn.xbtop.blog.mapper;

import cn.xbtop.blog.pojo.Log;
import cn.xbtop.blog.utils.PageBean;

import java.util.List;

/**
 * @author  Mxb
 * @date  2020/2/19 15:48
 * @version 1.0
 */
public interface LogMapper {
    /**
     * 根据id删除
     * @param logId
     * @return
     */
    int deleteByPrimaryKey(Integer logId);

    int insert(Log log);

    Log selectByPrimaryKey(Integer logId);

    int updateByPrimaryKey(Log log);

    int findTotal();

    /**
     * 分页查询
     * @param pageBean
     * @return
     */
    List<Log> findByPage(PageBean<Log> pageBean);

    /**
     * 批量删除
     * @param ids
     */
    void deleteByIds(List<Integer> ids);
}